package com.biscuit.page.basicservice.remote.api;

import com.biscuit.common.base.BaseResponse;
import com.biscuit.common.base.BaseResponseVoid;
import com.biscuit.page.basicservice.api.ITestRemote;
import com.biscuit.page.basicservice.service.TestService;
import com.biscuit.page.basicservice.utils.BaseResponseUtil;
import lombok.extern.slf4j.Slf4j;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;

/**
 * @author biscuit
 * @createTime 2024/6/7 15:37
 */
@Slf4j
@RestController
public class TestRemoteImpl implements ITestRemote {

    @Resource
    private TestService service;

    @Override
    public BaseResponse<BaseResponseVoid> txTest() {
        this.service.execTxTest();
        return BaseResponseUtil.success();
    }

}
